/********************************************************************************
 * Copyright (c)2016-2020, ShenZhen WanJiaAn Technology CO.,LTD.
 * All Rights Reserved.
 *
 * File Name     : WifiSoc.h
 * Author        : joki.zhu
 * Date          : 2020-07-03
 *
 * Record        :
 * 1.Date        : 2020-07-03
 *   Author      : joki.zhu
 *   Modification: Created file
 ********************************************************************************/

#ifndef __WIFISOC_H__
#define __WIFISOC_H__

#include "DevWifi.h"
#include "hi_hal_syslink.h"
#include "DevSocSub.h"
#include "System.h"

#ifdef __cplusplus
#if __cplusplus
extern "C"{
#endif
#endif /* __cplusplus */

int wifisoc_set_wifi_connect(char *ssid, char *pwd, WIFI_ENCRYPT_TYPE_E enEncryptType);
int wifisoc_set_wifi_disconnect(void);
int wifisoc_get_wifi_status(HI_SYSLINK_WIFI_STATUS *pstWifiStatus);
int wifisoc_set_led_state(unsigned char value);
int wifisoc_get_version(char *pVersion);
int wifisoc_get_battery_status(BATTERY_STATUS_S *pstBatStatus);
int wifisoc_set_system_mode(HI_SYSLINK_SYS_MODE enSysMode);
int wifisoc_set_pir(char bEnable);
int wifisoc_get_pir(char *bEnable);
int wifisoc_get_time(SYSTEM_TIME *pstSysTime);
int wifisoc_set_time(SYSTEM_TIME stSysTime);
int  wifisoc_set_keepalive(HI_SYSLINK_WIFI_KEEPALIEVE_S stKeepAlive);
int wifisoc_clear_wakeup_info(void);
int wifisoc_set_wifi_tty_enable(void);
int wifisoc_set_reset(char *reason);
int wifisoc_set_reset_ex(char *reason);
void wifisoc_set_reset_switch(char bEnable);


int wifisoc_init(void);
int wifisoc_deinit(void);

#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */


#endif /* __WIFISOC_H__ */
